Integrand size = 21, antiderivative size = 90 \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=-\frac {b (d \cos (e+f x))^m}{f m}-\frac {a (d \cos (e+f x))^{1+m} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1+m}{2},\frac {3+m}{2},\cos ^2(e+f x)\right ) \sin (e+f x)}{d f (1+m) \sqrt {\sin ^2(e+f x)}} \]
[Out]
Time = 0.13 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.01, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3596, 3567, 3857, 2722} \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=-\frac {a \sin (e+f x) \cos (e+f x) (d \cos (e+f x))^m \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {m+1}{2},\frac {m+3}{2},\cos ^2(e+f x)\right )}{f (m+1) \sqrt {\sin ^2(e+f x)}}-\frac {b (d \cos (e+f x))^m}{f m} \]
[In]
[Out]
Rule 2722
Rule 3567
Rule 3596
Rule 3857
Rubi steps \begin{align*} \text {integral}& = \left ((d \cos (e+f x))^m (d \sec (e+f x))^m\right ) \int (d \sec (e+f x))^{-m} (a+b \tan (e+f x)) \, dx \\ & = -\frac {b (d \cos (e+f x))^m}{f m}+\left (a (d \cos (e+f x))^m (d \sec (e+f x))^m\right ) \int (d \sec (e+f x))^{-m} \, dx \\ & = -\frac {b (d \cos (e+f x))^m}{f m}+\left (a \left (\frac {\cos (e+f x)}{d}\right )^{-m} (d \cos (e+f x))^m\right ) \int \left (\frac {\cos (e+f x)}{d}\right )^m \, dx \\ & = -\frac {b (d \cos (e+f x))^m}{f m}-\frac {a \cos (e+f x) (d \cos (e+f x))^m \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1+m}{2},\frac {3+m}{2},\cos ^2(e+f x)\right ) \sin (e+f x)}{f (1+m) \sqrt {\sin ^2(e+f x)}} \\ \end{align*}
Time = 0.18 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.83 \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=-\frac {(d \cos (e+f x))^m \left (b+b m+a m \cot (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1+m}{2},\frac {3+m}{2},\cos ^2(e+f x)\right ) \sqrt {\sin ^2(e+f x)}\right )}{f m (1+m)} \]
[In]
[Out]
\[\int \left (d \cos \left (f x +e \right )\right )^{m} \left (a +b \tan \left (f x +e \right )\right )d x\]
[In]
[Out]
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \]
[In]
[Out]
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int \left (d \cos {\left (e + f x \right )}\right )^{m} \left (a + b \tan {\left (e + f x \right )}\right )\, dx \]
[In]
[Out]
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \]
[In]
[Out]
\[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int { {\left (b \tan \left (f x + e\right ) + a\right )} \left (d \cos \left (f x + e\right )\right )^{m} \,d x } \]
[In]
[Out]
Timed out. \[ \int (d \cos (e+f x))^m (a+b \tan (e+f x)) \, dx=\int {\left (d\,\cos \left (e+f\,x\right )\right )}^m\,\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right ) \,d x \]
[In]
[Out]